home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / mac.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-02-21  |  1.8 KB  |  98 lines

  1. /*
  2.   Macintosh Utility Methods for ImageMagick.
  3. */
  4. #ifndef _MAGICK_MAC_H
  5. #define _MAGICK_MAC_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. #include <locale.h>
  12. #include <Errors.h>
  13. #include <Files.h>
  14. #include <errno.h>
  15.  
  16. #if defined(_POSIX_VERSION)
  17. # include <dirent.h>
  18. # if !defined(DISABLE_SIOUX)
  19. #  include <SIOUX.h>
  20. # endif
  21. #else
  22. # include <stat.h>
  23.  
  24. #define S_IREAD  00400
  25. #define S_IWRITE  00200
  26.  
  27. typedef struct _DIR
  28. {
  29.   int
  30.     d_VRefNum;
  31.  
  32.   long int
  33.     d_DirID;
  34.  
  35.   int
  36.     d_index;
  37. } DIR;
  38.  
  39. struct dirent
  40. {
  41.   char
  42.     d_name[255];
  43.  
  44.   int
  45.     d_namlen;
  46. };
  47. #endif
  48.  
  49. MagickExport Image
  50.   *ReadPICTImage(const ImageInfo *,ExceptionInfo *);
  51.  
  52. extern MagickExport int
  53.   Exit(int),
  54.   MACSystemCommand(const char *);
  55.  
  56. extern MagickExport unsigned int
  57.   MACIsMagickConflict(const char *);
  58.  
  59. extern MagickExport void
  60.   MACErrorHandler(const ExceptionType,const char *,const char *),
  61.   MACWarningHandler(const ExceptionType,const char *,const char *),
  62.   ProcessPendingEvents(const char *),
  63.   SetApplicationType(const char *,const char *,OSType);
  64.  
  65. #if defined(DISABLE_SIOUX)
  66. typedef void
  67.   (*MACEventHookPtr)(const char *);
  68.  
  69. typedef void
  70.   (*MACErrorHookPtr)(const short,const char *text);
  71.  
  72. extern MagickExport void
  73.   MACSetErrorHook(MACErrorHookPtr),
  74.   MACSetEventHook(MACEventHookPtr),
  75.   MACFatalErrorHandler(const ExceptionType,const char *,const char *);
  76. #endif
  77.  
  78. #if !defined(_POSIX_VERSION)
  79. extern MagickExport DIR
  80.   *opendir(const char *);
  81.  
  82. extern MagickExport long
  83.   telldir(DIR *);
  84.  
  85. extern MagickExport struct dirent
  86.   *readdir(DIR *);
  87.  
  88. extern MagickExport void
  89.   seekdir(DIR *,long),
  90.   closedir(DIR *);
  91. #endif
  92.  
  93. #if defined(__cplusplus) || defined(c_plusplus)
  94. }
  95. #endif
  96.  
  97. #endif
  98.